<?php
	$id=$_REQUEST["id"];
	$name=$_REQUEST["name"];
	$age=$_REQUEST["age"];
	$sex=$_REQUEST["sex"];
	$result=$_REQUEST["result"];
	
	$link=mysqli_connect("localhost:3306","root","root","ww_nz");
	if(!($link)){
		echo "数据库连接失败";
	}else{
		$sql02="UPDATE stu SET age={$age},sex='{$sex}',result={$result},name='{$name}' WHERE id={$id} ";
		$res=mysqli_query($link,$sql02);
		// if(!($res)){
		// 	echo "修改失败!"
		// }else{
		// 	$arr=array('{$name}',$age,'{$sex}',$result);
		// 	echo $arr;
		// }
	}
?>